package com.arcbbs.controller;

import com.arcbbs.result.Result;
import com.arcbbs.service.FormBoardService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/board")
public class FormBoardController {
    @Resource
    private FormBoardService formBoardService;

    @RequestMapping("/loadBoard")
    public Result loadBoard(){

        return Result.success(formBoardService.getboardtree(null));
    }

}
